package com.ssy.lingxi.platform.template.api.feign.paas;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.template.api.model.dto.paas.PageTemplatePAASDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @menu 页面模板 - （系统初始化）PAAS接口
 * @author fhj
 * @version 2.0.0
 * @date 2020/11/21
 */
@FeignClient(value = "platform-template-service")
public interface PageTemplatePAASControllerFeign {

    @ApiOperation(value = "新增")
    @PostMapping("/template/paas/pageTemplatePAAS/add")
    Wrapper<?> add(@RequestBody @Valid PageTemplatePAASDTO dto);

    @ApiOperation(value = "修改")
    @PostMapping("/template/paas/pageTemplatePAAS/update")
    Wrapper<?> update(@RequestBody @Valid PageTemplatePAASDTO dto);

    @ApiOperation(value = "使用")
    @PostMapping("/template/paas/pageTemplatePAAS/use")
    Wrapper<?> use(@RequestBody @Valid PageTemplatePAASDTO dto);
}
